﻿<%@ Page Language="C#" Theme="WebMaster" MasterPageFile="~/WebMaster/MasterPage.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="webapp4U.UI.Admin.ManageUsers" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register TagPrefix="webapp4U" Namespace="webapp4U.UI" %>
<%@ Register Src="~/WebMaster/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>

<asp:Content ID="MainContent" ContentPlaceHolderID="PageContent" Runat="Server">
<uc:Title ID="Title1" runat="server" ResourceKey='Chatlieu_Manager'  />
<br />
<asp:UpdatePanel ID="UserUpdatePanel" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <table width="700" align="center">
            <tr>
                <td align="left">
                    <a class="linkAdd" href="<%=Globals.ApplicationPath %>WebMaster/Chatlieu/ChatlieuAdd.aspx"><%=ResourceManager.GetString("Chatlieu_ChatlieuAdd") %></a>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <br />
                    <asp:GridView runat="server" Width="700" DataSourceID="ItemDataSource" ID="GridViewItem">
                        <Columns>
                            <asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="20px" HeaderStyle-Width="20px">
                                <HeaderTemplate>
                                    <input id="chkAll" onclick="javascript:SelectAllCheckboxes(this);" runat="server"
                                        type="checkbox" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox runat="server" ID="chkSelect" ToolTip='<%# Eval("ChatlieuID") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="Chatlieu" HeaderStyle-HorizontalAlign="left" ItemStyle-HorizontalAlign="left">
                                <HeaderTemplate>Chất liệu(vn)</HeaderTemplate>
                                <ItemTemplate>
                                    <%# Eval("Title") %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="Chatlieu" HeaderStyle-HorizontalAlign="left" ItemStyle-HorizontalAlign="left">
                                <HeaderTemplate>Chất liệu(en)</HeaderTemplate>
                                <ItemTemplate>
                                    <%# Eval("Title_en") %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="Sắp xếp" ItemStyle-Width="100" HeaderStyle-Width="100" HeaderStyle-HorizontalAlign="center" ItemStyle-HorizontalAlign="center">
                                <HeaderTemplate>Sắp xếp</HeaderTemplate>
                                <ItemTemplate>
                                    <%# Eval("DisplayOrder") %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            
                            
                            <asp:TemplateField HeaderText="Edit" ItemStyle-Width="40" HeaderStyle-Width="40" 
                                HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                                <HeaderTemplate><%=ResourceManager.GetString("Edit")%></HeaderTemplate>
                                <ItemTemplate>
                                    <a href="ChatlieuAdd.aspx?ChatlieuID=<%# Eval("ChatlieuID") %>&Action=Edit">
                                        <img src="<%=Globals.ImagesUrlWebMaster()%>Edit.gif" border="0" />
                                    </a>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EmptyDataTemplate>
                            <table align="center" width="300" border="0" bordercolorlight="#0099cc" bordercolor="#0099cc">
                                <tr>
                                    <td height="50" align="center">
                                        <div align="center" id="EmptyData">
                                            <%=ResourceManager.GetString("DataEmpty") %>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </EmptyDataTemplate>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <br />
                    <asp:LinkButton runat="server" ID="btDelete" Text=" Delete " OnClick="btDelete_Click" />
                    <br />
                    <br />
                    <br />
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel> 


<asp:ObjectDataSource
    ID="ItemDataSource"
    runat="server"
    SelectMethod="GetAllChatlieu"
    TypeName="webapp4U.BOL.Chatlieu">
</asp:ObjectDataSource>
 
</asp:Content>

